package kr.ac.jejuuniv.controller;

import kr.ac.jejuuniv.service.BookmarkService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/bookmarkRemove")
public class BookmarkRemove {
	@Autowired
	private BookmarkService bookmarkService;
	
	@RequestMapping
	public String action(@RequestParam("id") String id) {
		bookmarkService.remove(id);
		return "redirect:list";
	}
	

}
